package com.model;

import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;

@Entity
public class Tempfile {
	private int fileid;
	private String filenow;
	private String filetype;
	private String filename;
	private String stuffid;
	private String acceptid;
	private String mkdate;
	private String mktime;
	private String topic;
	private String thistext;
	private String delsend;
	private String delaccept;
	private String tempcode;
	private String alreadyreaders;
	private String isreturn;
	private String bigfilenow;
	private String bigfiletype;
	private String bigfilename;
	private String departcode;
	private String ipaddress;
	private Astuff astuff;

	@OneToOne
	@JoinColumn(name = "stuffid", insertable = false, updatable = false)
	public Astuff getAstuff() {
		return astuff;
	}

	public void setAstuff(Astuff astuff) {
		this.astuff = astuff;
	}

	@Id
	@GeneratedValue
	public int getFileid() {
		return fileid;
	}

	public void setFileid(int fileid) {
		this.fileid = fileid;
	}

	public String getFilenow() {
		return filenow;
	}

	public void setFilenow(String filenow) {
		this.filenow = filenow;
	}

	public String getFiletype() {
		return filetype;
	}

	public void setFiletype(String filetype) {
		this.filetype = filetype;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getStuffid() {
		return stuffid;
	}

	public void setStuffid(String stuffid) {
		this.stuffid = stuffid;
	}

	public String getAcceptid() {
		return acceptid;
	}

	public void setAcceptid(String acceptid) {
		this.acceptid = acceptid;
	}

	public String getMkdate() {
		return mkdate;
	}

	public void setMkdate(String mkdate) {
		this.mkdate = mkdate;
	}

	public String getMktime() {
		return mktime;
	}

	public void setMktime(String mktime) {
		this.mktime = mktime;
	}

	public String getTopic() {
		return topic;
	}

	public void setTopic(String topic) {
		this.topic = topic;
	}

	public String getThistext() {
		return thistext;
	}

	public void setThistext(String thistext) {
		this.thistext = thistext;
	}

	public String getDelsend() {
		return delsend;
	}

	public void setDelsend(String delsend) {
		this.delsend = delsend;
	}

	public String getDelaccept() {
		return delaccept;
	}

	public void setDelaccept(String delaccept) {
		this.delaccept = delaccept;
	}

	public String getTempcode() {
		return tempcode;
	}

	public void setTempcode(String tempcode) {
		this.tempcode = tempcode;
	}

	public String getAlreadyreaders() {
		return alreadyreaders;
	}

	public void setAlreadyreaders(String alreadyreaders) {
		this.alreadyreaders = alreadyreaders;
	}

	public String getIsreturn() {
		return isreturn;
	}

	public void setIsreturn(String isreturn) {
		this.isreturn = isreturn;
	}

	public String getBigfilenow() {
		return bigfilenow;
	}

	public void setBigfilenow(String bigfilenow) {
		this.bigfilenow = bigfilenow;
	}

	public String getBigfiletype() {
		return bigfiletype;
	}

	public void setBigfiletype(String bigfiletype) {
		this.bigfiletype = bigfiletype;
	}

	public String getBigfilename() {
		return bigfilename;
	}

	public void setBigfilename(String bigfilename) {
		this.bigfilename = bigfilename;
	}

	public String getDepartcode() {
		return departcode;
	}

	public void setDepartcode(String departcode) {
		this.departcode = departcode;
	}

	public String getIpaddress() {
		return ipaddress;
	}

	public void setIpaddress(String ipaddress) {
		this.ipaddress = ipaddress;
	}
}
